package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

/**
 * ShoppingCartService
 *
 * @author liliudong
 * @version 1.0
 * @description
 * @date 2023/8/2 14:07
 */
public interface ShoppingCartService {
    /**
     * 添加
     *
     * @param shoppingCartDTO 购物车dto
     */
    void add(ShoppingCartDTO shoppingCartDTO);

    /**
     * 列表
     *
     * @return {@link List}<{@link ShoppingCart}>
     */
    List<ShoppingCart> list();

    /**
     * 清洁
     */
    void clean();
}
